//
//  BonusTableViewCell.m
//  wangzhe
//
//  Created by 李 佳伟 on 2017/11/9.
//  Copyright © 2017年 李 佳伟. All rights reserved.
//

#import "BonusTableViewCell.h"
#import "HongBaoView.h"
#import "JTCSM.h"
static CGFloat space = 20;
static CGFloat top = 20;
@interface BonusTableViewCell (){
    
    HongBaoView *view;
}

@end
@implementation BonusTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor clearColor];
        self.backgroundColor = [UIColor clearColor];

        view = [[HongBaoView alloc]initWithFrame:CGRectMake(space, top, KSCREENWidth-2*space, 0)];
        [self.contentView addSubview:view];
        
    }
    
    return self;
}

- (void)setValueWithModel:(BounsModel *)model{
    [view setValueWithModel:model];
}

@end
